'''
* This is the projet for Brtc LlmOps Platform
* @Author Leon-liao <liaosiliang@alltman.com>
* @Description //TODO 
* @File: oauth_schema.py
* @Time: 2025/10/11
* @All Rights Reserve By Brtc
'''
from flask_wtf import FlaskForm
from marshmallow import Schema, fields
from wtforms import StringField
from wtforms.validators import DataRequired


class AuthorizeReq(FlaskForm):
    """第三方授权认证请求校验"""
    code = StringField('code', validators=[DataRequired("code代码不能为空")])


class AuthorizeResp(Schema):
    """第三方授权认证相应结构"""
    access_token = fields.String()
    expire_at = fields.Integer()